import router from '@/router'

// 用于 router push
window._hmt = window._hmt || []

router.afterEach(function (to) {
  if (!HM_ID) {
    return
  }
  _hmt.push(['_trackPageview', to.fullPath])
})
